package com.byd.sealmanage.dao.mybatis;

import com.byd.sealmanage.config.CommonMapper;
import com.byd.sealmanage.modal.po.TbRole;
import org.springframework.stereotype.Repository;

import java.util.Set;

@Repository
public interface TbRoleMapper extends CommonMapper<TbRole> {

    /**
     * 获取多角色信息
     * @param jobNumber
     * @return
     */
    Set<TbRole> getUserRoles(String jobNumber);

    /**
     * 获取用户单角色
     * @param jobNumber
     * @return
     */
    TbRole getUserOneRole(String jobNumber);
}